package com.bw.ppjoke;

import android.util.Log;

import com.bw.baserecyclerview.quick.BaseQuickAdapter;
import com.bw.baserecyclerview.quick.BaseViewHolder;
import com.bw.ijk.widget.IjkView;

import java.util.HashMap;

public class MainAdapter extends BaseQuickAdapter<HashMap<String,String>> {

    public MainAdapter() {
        super(R.layout.item_main);
    }

    @Override
    public void convert(BaseViewHolder holder, HashMap<String, String> item) {
//        Log.e("ZXY","convert");
//        String url = item.get("url");
        String imgUrl = item.get("imgUrl");
        IjkView ijkView = holder.getView(R.id.main_item_ijk);
        ijkView.setImgUrl(imgUrl);

//        ijkView.setPlayUrl(url);
    }
}
